import request from '@/utils/request'

export function getAllStockRecords() {
    return request({
        url: '/api/stock-record',
        method: 'get'
    })
}

export function getStockRecordsByPort(portId) {
    return request({
        url: `/api/stock-record/port/${portId}`,
        method: 'get'
    })
}

export function getStockRecordsByWarehouse(warehouseId) {
    return request({
        url: `/api/stock-record/warehouse/${warehouseId}`,
        method: 'get'
    })
}

export function getStockRecordsByPortAndWarehouse(portId, warehouseId) {
    return request({
        url: `/api/stock-record/port/${portId}/warehouse/${warehouseId}`,
        method: 'get'
    })
} 